<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>main.c</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('group__ble__sdk__app__pwr__mgmt__main.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">main.c</div>  </div>
<div class="ingroups"><a class="el" href="group__ble__sdk__app__pwr__mgmt.html">Power Profiling Application</a></div></div>
<div class="contents">

<p>Power profiling sample application main file.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga560763b9fb39a5ff10a86255b583acc0">APP_CFG_NON_CONN_ADV_TIMEOUT</a>&#160;&#160;&#160;30</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga21391c876b70819800ee07cabb337448">APP_CFG_CHAR_NOTIF_TIMEOUT</a>&#160;&#160;&#160;5000</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gadc3efc37d835db80f2359a6d24edb5d1">APP_CFG_ADV_DATA_LEN</a>&#160;&#160;&#160;31</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga010a0abfa2f84b5290d55c0a3f3757f0">APP_CFG_CONNECTION_INTERVAL</a>&#160;&#160;&#160;20</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga25c08352c9bdbc5c273f2260753306ce">APP_CFG_CHAR_LEN</a>&#160;&#160;&#160;20</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaaed671c6b234821122d1d5001f3c7070">NOTIF_BUTTON_PIN_NO</a>&#160;&#160;&#160;NRF6310_BUTTON_0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga0ba1e5fcb6523111994123a3149aeabb">NON_CONN_ADV_BUTTON_PIN_NO</a>&#160;&#160;&#160;NRF6310_BUTTON_1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga5f5a2c9450ebc584b4fe743c6b1a280b">DEVICE_NAME</a>&#160;&#160;&#160;&quot;PWR_MGMT_DEMO&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga00094df3c7ff7f2c4f47ae51d3cfcb15">CONNECTABLE_ADV_INTERVAL</a>&#160;&#160;&#160;0x0020</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga6b8aee23a937868a6bbb2feeb08fd92e">NON_CONNECTABLE_ADV_INTERVAL</a>&#160;&#160;&#160;0x00A0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga335fca8c939c7948f344be20f4033cfa">CONNECTABLE_ADV_TIMEOUT</a>&#160;&#160;&#160;30</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga0c921a874ac37870fc1516ce66cd228a">SLAVE_LATENCY</a>&#160;&#160;&#160;0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga799412c2b531ca347e13611e6e7523b9">CONN_SUP_TIMEOUT</a>&#160;&#160;&#160;(4 * 100)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga499913f33cd52975862964746893c65c">ADV_ENCODED_AD_TYPE_LEN</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gacea39bb4f33bedf27691dee46970be2b">ADV_ENCODED_AD_TYPE_LEN_LEN</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gad5d828ead699daee4e4ea6102a3d8fb7">ADV_ENCODED_UUID_LEN</a>&#160;&#160;&#160;2</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga1f05d89a33b1cf6b00e5fd613f9bbd09">ADV_FLAGS_LEN</a>&#160;&#160;&#160;1</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga7856d28e6d5f09d1290fe13cf6283175">ADV_ENCODED_FLAGS_LEN</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga79b025307017e3fc5661e38ee76b04fb">ADV_MANUF_DATA_LEN</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga4385d0276b988006b19c1fe08161fb7f">COMPANY_IDENTIFIER</a>&#160;&#160;&#160;0x0059</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga44a2aaf4d9ce96f1b25a577e09015ebc">LOCAL_SERVICE_UUID</a>&#160;&#160;&#160;0x1523</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf93b1cc507e504d92a6708d8aa959a31">LOCAL_CHAR_UUID</a>&#160;&#160;&#160;0x1524</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaec7f925a06b06de7081202c846b6d536">LOCAL_VENDOR_UUID_INDEX</a>&#160;&#160;&#160;0</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gadec561788a76b8a63ad9663625a25d78">assert_nrf_callback</a> (uint16_t line_num, const uint8_t *file_name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Assert macro callback function.  <a href="#gadec561788a76b8a63ad9663625a25d78"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga76045b247174748cfb7bbd3db14171cd">char_notify</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Characteristic notification function.  <a href="#ga76045b247174748cfb7bbd3db14171cd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga1004973353f351806e42896c491a5ab2">gap_params_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">GAP initialization.  <a href="#ga1004973353f351806e42896c491a5ab2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga934bcce661439fc90412ca1db063b4b7">connectable_adv_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connectable advertisement parameters init function.  <a href="#ga934bcce661439fc90412ca1db063b4b7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga23b9d2f8790845fdf3dc42fefca65e85">non_connectable_adv_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Non-Connectable advertisement parameters init function.  <a href="#ga23b9d2f8790845fdf3dc42fefca65e85"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gae64bf38f2019810fa55bd7ceaa0d39e9">advertising_data_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Advertisement paccket init function.  <a href="#gae64bf38f2019810fa55bd7ceaa0d39e9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaefcf3206bdbe52a9eb2e07f58354b783">char_add</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Characteristic add function.  <a href="#gaefcf3206bdbe52a9eb2e07f58354b783"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gad49f9175444b3807f1656765165799a5">service_add</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Service add function.  <a href="#gad49f9175444b3807f1656765165799a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga121d089b824f9cd14b339f8fb0fae7b3">notif_timeout_handler</a> (app_timer_id_t timer_id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notification timeout handler.  <a href="#ga121d089b824f9cd14b339f8fb0fae7b3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga38c78315f8d51b2ee6449ede5be4624c">connection_interval_timeout_handler</a> (app_timer_id_t timer_id)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Connection interval timeout handler.  <a href="#ga38c78315f8d51b2ee6449ede5be4624c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga59f2752bdf059ab72ec3987d0b1db770">application_timers_start</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start application timers.  <a href="#ga59f2752bdf059ab72ec3987d0b1db770"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8816338f0269bbffa4cf5c2ec105eee9"></a><!-- doxytag: member="ble_sdk_app_pwr_mgmt_main::application_timers_stop" ref="ga8816338f0269bbffa4cf5c2ec105eee9" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga8816338f0269bbffa4cf5c2ec105eee9">application_timers_stop</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop application timers. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gadf80cd84ee702e57a2a416fe4f653eb8"></a><!-- doxytag: member="ble_sdk_app_pwr_mgmt_main::advertising_start" ref="gadf80cd84ee702e57a2a416fe4f653eb8" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gadf80cd84ee702e57a2a416fe4f653eb8">advertising_start</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Start advertising. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga09658aaa0774820d8f25249d551bc283">timers_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Timer initialization.  <a href="#ga09658aaa0774820d8f25249d551bc283"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga70525a816fec301fa4c9d564831c440b">on_write</a> (<a class="el" href="structble__evt__t.html">ble_evt_t</a> *p_ble_evt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Funtion that evaluates the value written in CCCD.  <a href="#ga70525a816fec301fa4c9d564831c440b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gad083cb3569230d7ecbf2d01ef2a2c1d9">on_ble_evt</a> (<a class="el" href="structble__evt__t.html">ble_evt_t</a> *p_ble_evt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Application's BLE Stack event handler.  <a href="#gad083cb3569230d7ecbf2d01ef2a2c1d9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga2b08d6ccb6e7f4588d2ac843d4494c0e">ble_evt_dispatch</a> (<a class="el" href="structble__evt__t.html">ble_evt_t</a> *p_ble_evt)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Dispatches a BLE stack event to all modules with a BLE stack event handler.  <a href="#ga2b08d6ccb6e7f4588d2ac843d4494c0e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaa06a7a39e83ec4cf3553f4ed6ba6323a">ble_stack_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">BLE stack initialization.  <a href="#gaa06a7a39e83ec4cf3553f4ed6ba6323a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga265c25c068555fbfae4ab4f391060040"></a><!-- doxytag: member="ble_sdk_app_pwr_mgmt_main::buttons_init" ref="ga265c25c068555fbfae4ab4f391060040" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga265c25c068555fbfae4ab4f391060040">buttons_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the wakeup buttons. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static __INLINE uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga8014b2b4745214caa69c5fddd0401388">gpio_pin_read</a> (uint32_t pin_number)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the state of the input pin.  <a href="#ga8014b2b4745214caa69c5fddd0401388"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3adda2642702fdb99b08992c39494000"></a><!-- doxytag: member="ble_sdk_app_pwr_mgmt_main::power_manage" ref="ga3adda2642702fdb99b08992c39494000" args="(void)" -->
static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga3adda2642702fdb99b08992c39494000">power_manage</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Power manager. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga840291bc02cba5474a4cb46a9b9566fe"></a><!-- doxytag: member="ble_sdk_app_pwr_mgmt_main::main" ref="ga840291bc02cba5474a4cb46a9b9566fe" args="(void)" -->
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga840291bc02cba5474a4cb46a9b9566fe">main</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Application main function. <br/></td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="structble__uuid128__t.html">ble_uuid128_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gab2bc7dc71fbbcac4685881915c9ca91e">s_base_uuid128s</a> []</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">128-bit UUID base List.  <a href="#gab2bc7dc71fbbcac4685881915c9ca91e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structble__gap__adv__params__t.html">ble_gap_adv_params_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga50483ecf69a0ae87ce1a8a5e8fa73c04">s_adv_params</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gabda72b268ff799e0669dc35bd53061e7">s_char_value</a> [APP_CFG_CHAR_LEN]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf2c1a985510302fbec992f686c392e3d">s_adv_manuf_data</a> [ADV_MANUF_DATA_LEN]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structble__gatts__char__handles__t.html">ble_gatts_char_handles_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga46f01b26e72f51c774e2bab1f9828bcc">s_char_handles</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaaf76d22968f9f320aa5005a25f654320">s_conn_handle</a> = BLE_CONN_HANDLE_INVALID</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga90ec27d28a69ce12e4dfac8889b64e30">s_service_handle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf1f61dda3c80fe8ee2ffdcbf6d8c902c">s_is_notifying_enabled</a> = false</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<p>Power profiling sample application main file. </p>
<p>This file contains the source code for a sample application to demonstrate/measure the power consumption by the nRF51822 chip while sending notifications for a given duration and while advertising in non-connectable mode for a given duration. The values of macros that begin with APP_CFG_ prefix can be changed to alter the power consumption of the application.</p>
<p>srvlib_conn_params module. </p>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="ga560763b9fb39a5ff10a86255b583acc0"></a><!-- doxytag: member="main.c::APP_CFG_NON_CONN_ADV_TIMEOUT" ref="ga560763b9fb39a5ff10a86255b583acc0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define APP_CFG_NON_CONN_ADV_TIMEOUT&#160;&#160;&#160;30</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Time for which the device must be advertising in non-connectable mode (in seconds). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00049">49</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga21391c876b70819800ee07cabb337448"></a><!-- doxytag: member="main.c::APP_CFG_CHAR_NOTIF_TIMEOUT" ref="ga21391c876b70819800ee07cabb337448" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define APP_CFG_CHAR_NOTIF_TIMEOUT&#160;&#160;&#160;5000</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Time for which the device must continue to send notifications once connected to master (in milli seconds). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00050">50</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gadc3efc37d835db80f2359a6d24edb5d1"></a><!-- doxytag: member="main.c::APP_CFG_ADV_DATA_LEN" ref="gadc3efc37d835db80f2359a6d24edb5d1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define APP_CFG_ADV_DATA_LEN&#160;&#160;&#160;31</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Required length of the complete advertisement packet. This should be atleast 8 in order to accommodate flag field and other mandatory fields and one byte of manufacturer specific data. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00051">51</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga010a0abfa2f84b5290d55c0a3f3757f0"></a><!-- doxytag: member="main.c::APP_CFG_CONNECTION_INTERVAL" ref="ga010a0abfa2f84b5290d55c0a3f3757f0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define APP_CFG_CONNECTION_INTERVAL&#160;&#160;&#160;20</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Connection interval used by the master (in milli seconds). This application will be sending one notification per connection interval. A repeating timer will be started with timeout value equal to this value and one notification will be sent everytime this timer expires. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00052">52</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga25c08352c9bdbc5c273f2260753306ce"></a><!-- doxytag: member="main.c::APP_CFG_CHAR_LEN" ref="ga25c08352c9bdbc5c273f2260753306ce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define APP_CFG_CHAR_LEN&#160;&#160;&#160;20</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Size of the characteristic value being notified (in bytes). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00053">53</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaaed671c6b234821122d1d5001f3c7070"></a><!-- doxytag: member="main.c::NOTIF_BUTTON_PIN_NO" ref="gaaed671c6b234821122d1d5001f3c7070" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NOTIF_BUTTON_PIN_NO&#160;&#160;&#160;NRF6310_BUTTON_0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Button used for initializing the application in connectable mode. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00059">59</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga0ba1e5fcb6523111994123a3149aeabb"></a><!-- doxytag: member="main.c::NON_CONN_ADV_BUTTON_PIN_NO" ref="ga0ba1e5fcb6523111994123a3149aeabb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NON_CONN_ADV_BUTTON_PIN_NO&#160;&#160;&#160;NRF6310_BUTTON_1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Button used for initializing the application in non-connectable mode. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00060">60</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga5f5a2c9450ebc584b4fe743c6b1a280b"></a><!-- doxytag: member="main.c::DEVICE_NAME" ref="ga5f5a2c9450ebc584b4fe743c6b1a280b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DEVICE_NAME&#160;&#160;&#160;&quot;PWR_MGMT_DEMO&quot;</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Name of device. Will be included in the advertising data. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00062">62</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga00094df3c7ff7f2c4f47ae51d3cfcb15"></a><!-- doxytag: member="main.c::CONNECTABLE_ADV_INTERVAL" ref="ga00094df3c7ff7f2c4f47ae51d3cfcb15" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CONNECTABLE_ADV_INTERVAL&#160;&#160;&#160;0x0020</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The advertising interval for connectable advertisement(in units of 0.625 ms. The value mentioned here corresponds to 25 ms. This value can vary between 0x0020 and 0x4000 (which correspond to 20ms to 10.24s). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00064">64</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga6b8aee23a937868a6bbb2feeb08fd92e"></a><!-- doxytag: member="main.c::NON_CONNECTABLE_ADV_INTERVAL" ref="ga6b8aee23a937868a6bbb2feeb08fd92e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NON_CONNECTABLE_ADV_INTERVAL&#160;&#160;&#160;0x00A0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The advertising interval for non-connectable advertisement (in units of 0.625 ms. The value mentioned here corresponds to 25 ms. This value can vary between 0x00A0 and 0x4000 in 0.625 ms (which correspond to 100ms to 10.24s). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00065">65</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga335fca8c939c7948f344be20f4033cfa"></a><!-- doxytag: member="main.c::CONNECTABLE_ADV_TIMEOUT" ref="ga335fca8c939c7948f344be20f4033cfa" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CONNECTABLE_ADV_TIMEOUT&#160;&#160;&#160;30</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Time for which the device must be advertising in connectable mode (in seconds). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00066">66</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga0c921a874ac37870fc1516ce66cd228a"></a><!-- doxytag: member="main.c::SLAVE_LATENCY" ref="ga0c921a874ac37870fc1516ce66cd228a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SLAVE_LATENCY&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Slave latency. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00068">68</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga799412c2b531ca347e13611e6e7523b9"></a><!-- doxytag: member="main.c::CONN_SUP_TIMEOUT" ref="ga799412c2b531ca347e13611e6e7523b9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CONN_SUP_TIMEOUT&#160;&#160;&#160;(4 * 100)</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Connection supervisory timeout (4 seconds). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00069">69</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga499913f33cd52975862964746893c65c"></a><!-- doxytag: member="main.c::ADV_ENCODED_AD_TYPE_LEN" ref="ga499913f33cd52975862964746893c65c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADV_ENCODED_AD_TYPE_LEN&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Length of encoded ad type in advertisement data. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00071">71</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gacea39bb4f33bedf27691dee46970be2b"></a><!-- doxytag: member="main.c::ADV_ENCODED_AD_TYPE_LEN_LEN" ref="gacea39bb4f33bedf27691dee46970be2b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADV_ENCODED_AD_TYPE_LEN_LEN&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Length of the 'length field' of each ad type in advertisement data. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00072">72</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gad5d828ead699daee4e4ea6102a3d8fb7"></a><!-- doxytag: member="main.c::ADV_ENCODED_UUID_LEN" ref="gad5d828ead699daee4e4ea6102a3d8fb7" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADV_ENCODED_UUID_LEN&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Length of the encoded uuid in advertisement data. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00073">73</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga1f05d89a33b1cf6b00e5fd613f9bbd09"></a><!-- doxytag: member="main.c::ADV_FLAGS_LEN" ref="ga1f05d89a33b1cf6b00e5fd613f9bbd09" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADV_FLAGS_LEN&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Length of flags field that will be placed in advertisement data. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00074">74</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga7856d28e6d5f09d1290fe13cf6283175"></a><!-- doxytag: member="main.c::ADV_ENCODED_FLAGS_LEN" ref="ga7856d28e6d5f09d1290fe13cf6283175" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADV_ENCODED_FLAGS_LEN</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">(<a class="code" href="group__ble__sdk__app__pwr__mgmt__main.html#ga499913f33cd52975862964746893c65c">ADV_ENCODED_AD_TYPE_LEN</a> +     \
                                       ADV_ENCODED_AD_TYPE_LEN_LEN + \
                                       ADV_FLAGS_LEN)
</pre></div><p>Length of flags field in advertisement packet. (1 byte for encoded ad type plus 1 byte for length of flags plus the lenght of the flags itself). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00075">75</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga79b025307017e3fc5661e38ee76b04fb"></a><!-- doxytag: member="main.c::ADV_MANUF_DATA_LEN" ref="ga79b025307017e3fc5661e38ee76b04fb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ADV_MANUF_DATA_LEN</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Value:</b><div class="fragment"><pre class="fragment">(                              \
                                       APP_CFG_ADV_DATA_LEN -        \
                                       (                             \
                                        ADV_ENCODED_FLAGS_LEN +      \
                                        (                            \
                                         ADV_ENCODED_UUID_LEN +      \
                                         ADV_ENCODED_AD_TYPE_LEN +   \
                                         ADV_ENCODED_AD_TYPE_LEN_LEN \
                                        )                            \
                                       )                             \
                                      )
</pre></div><p>Length of Manufacturer Specific Data field that will be placed on the air during advertisement. This is computed based on the value of APP_CFG_ADV_DATA_LEN (required advertisement data length). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00078">78</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga4385d0276b988006b19c1fe08161fb7f"></a><!-- doxytag: member="main.c::COMPANY_IDENTIFIER" ref="ga4385d0276b988006b19c1fe08161fb7f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COMPANY_IDENTIFIER&#160;&#160;&#160;0x0059</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Company identifier for Nordic Semiconductor ASA as per www.bluetooth.org. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00104">104</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga44a2aaf4d9ce96f1b25a577e09015ebc"></a><!-- doxytag: member="main.c::LOCAL_SERVICE_UUID" ref="ga44a2aaf4d9ce96f1b25a577e09015ebc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOCAL_SERVICE_UUID&#160;&#160;&#160;0x1523</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Proprietary UUID for local service. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00106">106</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaf93b1cc507e504d92a6708d8aa959a31"></a><!-- doxytag: member="main.c::LOCAL_CHAR_UUID" ref="gaf93b1cc507e504d92a6708d8aa959a31" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOCAL_CHAR_UUID&#160;&#160;&#160;0x1524</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Proprietary UUID for local characteristic. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00107">107</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaec7f925a06b06de7081202c846b6d536"></a><!-- doxytag: member="main.c::LOCAL_VENDOR_UUID_INDEX" ref="gaec7f925a06b06de7081202c846b6d536" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOCAL_VENDOR_UUID_INDEX&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Index of the 128-bit UUID base List (the structure s_base_uuid128s) to be used for the UUIDs. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00108">108</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="gadec561788a76b8a63ad9663625a25d78"></a><!-- doxytag: member="main.c::assert_nrf_callback" ref="gadec561788a76b8a63ad9663625a25d78" args="(uint16_t line_num, const uint8_t *file_name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void assert_nrf_callback </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>line_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>file_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assert macro callback function. </p>
<p>This function will be called if the ASSERT macro fails.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">line_num</td><td>Line number of the failing ASSERT call. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">file_name</td><td>File name of the failing ASSERT call. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00137">137</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga76045b247174748cfb7bbd3db14171cd"></a><!-- doxytag: member="main.c::char_notify" ref="ga76045b247174748cfb7bbd3db14171cd" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void char_notify </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Characteristic notification function. </p>
<p>Sends one characterstic value notification to peer if connected to it and the notification is enabled. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00160">160</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga1004973353f351806e42896c491a5ab2"></a><!-- doxytag: member="main.c::gap_params_init" ref="ga1004973353f351806e42896c491a5ab2" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void gap_params_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>GAP initialization. </p>
<p>This function shall be used to setup all the necessary GAP (Generic Access Profile) parameters of the device. It also sets the permissions. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00202">202</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga934bcce661439fc90412ca1db063b4b7"></a><!-- doxytag: member="main.c::connectable_adv_init" ref="ga934bcce661439fc90412ca1db063b4b7" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void connectable_adv_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Connectable advertisement parameters init function. </p>
<p>This function initializes the advertisement parameters to values that will put the application in connectable mode. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00237">237</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga23b9d2f8790845fdf3dc42fefca65e85"></a><!-- doxytag: member="main.c::non_connectable_adv_init" ref="ga23b9d2f8790845fdf3dc42fefca65e85" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void non_connectable_adv_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Non-Connectable advertisement parameters init function. </p>
<p>This function initializes the advertisement parameters to values that will put the application in non-connectable mode. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00256">256</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gae64bf38f2019810fa55bd7ceaa0d39e9"></a><!-- doxytag: member="main.c::advertising_data_init" ref="gae64bf38f2019810fa55bd7ceaa0d39e9" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void advertising_data_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Advertisement paccket init function. </p>
<p>This function initializes the data that is to be placed in an advertisement packet in both connectable and non-connectable modes. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00275">275</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaefcf3206bdbe52a9eb2e07f58354b783"></a><!-- doxytag: member="main.c::char_add" ref="gaefcf3206bdbe52a9eb2e07f58354b783" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void char_add </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Characteristic add function. </p>
<p>This function adds the characteristic to the local db. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00308">308</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gad49f9175444b3807f1656765165799a5"></a><!-- doxytag: member="main.c::service_add" ref="gad49f9175444b3807f1656765165799a5" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void service_add </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Service add function. </p>
<p>This function adds the service and the characteristic within it to the local db. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00369">369</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga121d089b824f9cd14b339f8fb0fae7b3"></a><!-- doxytag: member="main.c::notif_timeout_handler" ref="ga121d089b824f9cd14b339f8fb0fae7b3" args="(app_timer_id_t timer_id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void notif_timeout_handler </td>
          <td>(</td>
          <td class="paramtype">app_timer_id_t&#160;</td>
          <td class="paramname"><em>timer_id</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Notification timeout handler. </p>
<p>This function will be called when the notification timer expires. This will stop the timer for connection interval and disconnect from the peer. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00399">399</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga38c78315f8d51b2ee6449ede5be4624c"></a><!-- doxytag: member="main.c::connection_interval_timeout_handler" ref="ga38c78315f8d51b2ee6449ede5be4624c" args="(app_timer_id_t timer_id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void connection_interval_timeout_handler </td>
          <td>(</td>
          <td class="paramtype">app_timer_id_t&#160;</td>
          <td class="paramname"><em>timer_id</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Connection interval timeout handler. </p>
<p>This function will be called when the connection interval timer expires. This will trigger another characteristic notification to the peer.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">timer_id</td><td>Timer ID. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00423">423</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga59f2752bdf059ab72ec3987d0b1db770"></a><!-- doxytag: member="main.c::application_timers_start" ref="ga59f2752bdf059ab72ec3987d0b1db770" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void application_timers_start </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Start application timers. </p>
<p>This function will be start two timers - one for the time duration for which notifications have to be sent to the peer and another for the interval between two notifications (which is also the connection interval). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00437">437</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga09658aaa0774820d8f25249d551bc283"></a><!-- doxytag: member="main.c::timers_init" ref="ga09658aaa0774820d8f25249d551bc283" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void timers_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Timer initialization. </p>
<p>Initializes the timer module. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00492">492</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga70525a816fec301fa4c9d564831c440b"></a><!-- doxytag: member="main.c::on_write" ref="ga70525a816fec301fa4c9d564831c440b" args="(ble_evt_t *p_ble_evt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void on_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structble__evt__t.html">ble_evt_t</a> *&#160;</td>
          <td class="paramname"><em>p_ble_evt</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Funtion that evaluates the value written in CCCD. </p>
<p>This shall be called when there is a write event received from the stack. This function will evaluate whether or not the peer has enabled notifications and start/stop notifications accordingly.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_ble_evt</td><td>Bluetooth stack event. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00513">513</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gad083cb3569230d7ecbf2d01ef2a2c1d9"></a><!-- doxytag: member="main.c::on_ble_evt" ref="gad083cb3569230d7ecbf2d01ef2a2c1d9" args="(ble_evt_t *p_ble_evt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void on_ble_evt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structble__evt__t.html">ble_evt_t</a> *&#160;</td>
          <td class="paramname"><em>p_ble_evt</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Application's BLE Stack event handler. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_ble_evt</td><td>Bluetooth stack event. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00543">543</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga2b08d6ccb6e7f4588d2ac843d4494c0e"></a><!-- doxytag: member="main.c::ble_evt_dispatch" ref="ga2b08d6ccb6e7f4588d2ac843d4494c0e" args="(ble_evt_t *p_ble_evt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ble_evt_dispatch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structble__evt__t.html">ble_evt_t</a> *&#160;</td>
          <td class="paramname"><em>p_ble_evt</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Dispatches a BLE stack event to all modules with a BLE stack event handler. </p>
<p>This function is called from the BLE Stack event interrupt handler after a BLE stack event has been received.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">p_ble_evt</td><td>Bluetooth stack event. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00596">596</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaa06a7a39e83ec4cf3553f4ed6ba6323a"></a><!-- doxytag: member="main.c::ble_stack_init" ref="gaa06a7a39e83ec4cf3553f4ed6ba6323a" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void ble_stack_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>BLE stack initialization. </p>
<p>Initializes the SoftDevice and the BLE event interrupt. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00606">606</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga8014b2b4745214caa69c5fddd0401388"></a><!-- doxytag: member="main.c::gpio_pin_read" ref="ga8014b2b4745214caa69c5fddd0401388" args="(uint32_t pin_number)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static __INLINE uint32_t gpio_pin_read </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>pin_number</em></td><td>)</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read the state of the input pin. </p>
<p>Although the function nrf_gpio_pin_read does exactly what this function does, this function is defined and used by this application because this app needs to read the button states even when the soft device is not enabled.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pin_number</td><td>Number of the pin to be read. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00644">644</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="gab2bc7dc71fbbcac4685881915c9ca91e"></a><!-- doxytag: member="main.c::s_base_uuid128s" ref="gab2bc7dc71fbbcac4685881915c9ca91e" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="structble__uuid128__t.html">ble_uuid128_t</a> <a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gab2bc7dc71fbbcac4685881915c9ca91e">s_base_uuid128s</a>[]<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<b>Initial value:</b><div class="fragment"><pre class="fragment">
{
   {
       {
           0x23, 0xD1, 0xBC, 0xEA, 0x5F, 0x78, 0x23, 0x15,
           0xDE, 0xEF, 0x12, 0x12, 0x00, 0x00, 0x00, 0x00
       }
    }
}
</pre></div>
<p>128-bit UUID base List. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00111">111</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga50483ecf69a0ae87ce1a8a5e8fa73c04"></a><!-- doxytag: member="main.c::s_adv_params" ref="ga50483ecf69a0ae87ce1a8a5e8fa73c04" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structble__gap__adv__params__t.html">ble_gap_adv_params_t</a> <a class="el" href="group__ble__sdk__app__hrs__eval__main.html#ga50483ecf69a0ae87ce1a8a5e8fa73c04">s_adv_params</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Parameters to be passed to the stack when starting advertising. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00121">121</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gabda72b268ff799e0669dc35bd53061e7"></a><!-- doxytag: member="main.c::s_char_value" ref="gabda72b268ff799e0669dc35bd53061e7" args="[APP_CFG_CHAR_LEN]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gabda72b268ff799e0669dc35bd53061e7">s_char_value</a>[APP_CFG_CHAR_LEN]<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Value of the characteristic that will be sent as a notification to the master. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00122">122</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaf2c1a985510302fbec992f686c392e3d"></a><!-- doxytag: member="main.c::s_adv_manuf_data" ref="gaf2c1a985510302fbec992f686c392e3d" args="[ADV_MANUF_DATA_LEN]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t <a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf2c1a985510302fbec992f686c392e3d">s_adv_manuf_data</a>[ADV_MANUF_DATA_LEN]<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Value of the manufacturer specific data that will be placed in air (initialized to all zeros). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00123">123</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga46f01b26e72f51c774e2bab1f9828bcc"></a><!-- doxytag: member="main.c::s_char_handles" ref="ga46f01b26e72f51c774e2bab1f9828bcc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structble__gatts__char__handles__t.html">ble_gatts_char_handles_t</a> <a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga46f01b26e72f51c774e2bab1f9828bcc">s_char_handles</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handles of local characteristic (as provided by the BLE stack). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00124">124</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaaf76d22968f9f320aa5005a25f654320"></a><!-- doxytag: member="main.c::s_conn_handle" ref="gaaf76d22968f9f320aa5005a25f654320" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="group__ble__sdk__app__template__main.html#gaaf76d22968f9f320aa5005a25f654320">s_conn_handle</a> = BLE_CONN_HANDLE_INVALID<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handle of the current connection (as provided by the BLE stack, is BLE_CONN_HANDLE_INVALID if not in a connection). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00125">125</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="ga90ec27d28a69ce12e4dfac8889b64e30"></a><!-- doxytag: member="main.c::s_service_handle" ref="ga90ec27d28a69ce12e4dfac8889b64e30" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t <a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#ga90ec27d28a69ce12e4dfac8889b64e30">s_service_handle</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Handle of local service (as provided by the BLE stack). </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00126">126</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
<a class="anchor" id="gaf1f61dda3c80fe8ee2ffdcbf6d8c902c"></a><!-- doxytag: member="main.c::s_is_notifying_enabled" ref="gaf1f61dda3c80fe8ee2ffdcbf6d8c902c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="group__ble__sdk__app__pwr__mgmt__main.html#gaf1f61dda3c80fe8ee2ffdcbf6d8c902c">s_is_notifying_enabled</a> = false<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Variable to indicate whether the notification is enabled by the peer. </p>

<p>Definition at line <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html#l00127">127</a> of file <a class="el" href="nrf6310__nrf2752_2ble_2ble__app__pwr__profiling_2main_8c_source.html">main.c</a>.</p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
